<?php
/**
 * 作业题十一 二维数组排序测试类
 * User: wuz
 * Date: 2016/8/9
 * Time: 10:10
 */
require_once '../ExampleEleven.php';
$arrOne = array(
    0 => array('fid' => 1, 'tid' => 1, 'name' => 'xiaoming'),
    1 => array('fid' => 1, 'tid' => 6, 'name' => 'zhangsan'),
    2 => array('fid' => 1, 'tid' => 10, 'name' => 'lisi'),
    3 => array('fid' => 1, 'tid' => 7, 'name' => 'wangwu'),
    4 => array('fid' => 3, 'tid' => 9, 'name' => 'zhaoliu'),
);
$test      = new ExampleEleven();
$firstKey  = 'tid';
$secondKey = 'name';
var_dump($test->arraySort($arrOne, $firstKey, $secondKey));
